#include <iostream>

using namespace std;

int main(void)
{
    //1、创建bool数据类型
    bool flag = true;
    cout << flag << endl;

    flag = false;
    cout << flag << endl;

    //2、查看bool类型所占内存空间
    cout << "bool\t占用内存空间为：" << sizeof(bool) << endl;

    return 0;
}